home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 June
/
ccd0605.iso
/
Software
/
Freeware
/
Programare
/
highlight
/
highlight-W32GUI-2.2-10b-Setup.exe
/
{app}
/
langDefs
/
py.lang
< prev
next >
Wrap
Text File
|
2005-04-08
|
2KB
|
46 lines
# Python language definition file
#
# Author: AndrΘ Simon
# Mail: andre.simon1@gmx.de
# Date: 3.4.2002
# ------------------------------------------
# This file is part of highlight, a free source code converter released under the GPL.
#
# The file is used to describe keywords and special symbols of programming languages.
# See README in the highlight directory for details.
#
# New definition files for future releases of highlight are always appreciated ;)
#
# ----------
# andre.simon1@gmx.de
# http:/www.andre-simon.de/
# Keywords taken from the VIM-Syntaxfile of Neil Schemenauer
$KW_LIST(kwa)= global lambda class nextgroup pythonfunction skipwhite
contained chr cmp coerce compile complex delattr dir divmod eval execfile
filter float getattr globals hasattr hash hex id input int intern isinstance
issubclass len list locals long map max min oct open ord pow range raw_input
reduce reload repr round setattr slice str tuple type vars xrange
arithmeticerror assertionerror attributeerror eoferror environmenterror
exception floatingpointerror ioerror importerror indexerror keyerror
keyboardinterrupt lookuperror memoryerror nameerror notimplementederror
oserror overflowerror runtimeerror standarderror syntaxerror systemerror
systemexit typeerror valueerror zerodivisionerror
$KW_LIST(kwb)=break continue del except exec finally pass print raise return
try assert def for while if elif else and in is not or as
$KW_LIST(kwc)=import from abs apply callable self
$STRINGDELIMITERS=""" ''' " '
$RAWSTRINGPREFIX=r
$SL_COMMENT=#
$IGNORECASE=true
$ESCCHAR=\
$SYMBOLS= ( ) [ ] { } , ; . : & | < > ! = / * % + -